package com.sysolve.betterCity.model;

import java.util.Date;

/**
 * @author ray
 * @hibernate.class table="activity"
 *
 */
public class Activity {
	  private String appId;

	  private String body;
	  private String bodyId;
	  private String externalId;
	  
	  private int id;
	  private Date updated;
	  private Long postedTime;
	  
	  private Float priority;

	  private String streamFaviconUrl;
	  private String streamSourceUrl;
	  private String streamTitle;
	  private String streamUrl;
	  
	  private String title;
	  private String titleId;
	  
	  private String url;
	  
	  public int isPublic;
	  public int isShownToFriends;
	  private Person owner;
	  
	  private Place place;
	  private Date eventTime;
	  
	  public ActivityType activityType;

	/**
	 * @return
	 * @hibernate.property column="app_id"
	 */
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	/**
	 * @return
	 * @hibernate.property column="body"
	 */
	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	/**
	 * @return
	 * @hibernate.property column="body_id"
	 */
	public String getBodyId() {
		return bodyId;
	}

	public void setBodyId(String bodyId) {
		this.bodyId = bodyId;
	}

	/**
	 * @return
	 * @hibernate.property column="event_time"
	 */
	public Date getEventTime() {
		return eventTime;
	}

	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}

	/**
	 * @return
	 * @hibernate.many-to-one column="activity_type"
	 */
	public ActivityType getActivityType() {
		return activityType;
	}

	public void setActivityType(ActivityType eventType) {
		this.activityType = eventType;
	}

	/**
	 * @return
	 * @hibernate.property column="external_id"
	 */
	public String getExternalId() {
		return externalId;
	}

	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}

	/**
	 * @return
	 * @hibernate.id generator-class="native" column="id"
	 */
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return
	 * @hibernate.property column="is_public"
	 */
	public int getIsPublic() {
		return isPublic;
	}

	public void setIsPublic(int isPublic) {
		this.isPublic = isPublic;
	}

	/**
	 * @return
	 * @hibernate.property column="is_shown_to_friends"
	 */
	public int getIsShownToFriends() {
		return isShownToFriends;
	}

	public void setIsShownToFriends(int isShownToFriends) {
		this.isShownToFriends = isShownToFriends;
	}

	/**
	 * @return
	 * @hibernate.many-to-one column="person"
	 */
	public Person getOwner() {
		return owner;
	}

	public void setOwner(Person owner) {
		this.owner = owner;
	}

	/**
	 * @return
	 * @hibernate.many-to-one column="place"
	 */
	public Place getPlace() {
		return place;
	}

	public void setPlace(Place place) {
		this.place = place;
	}

	/**
	 * @return
	 * @hibernate.property column="posted_time"
	 */
	public Long getPostedTime() {
		return postedTime;
	}

	public void setPostedTime(Long postedTime) {
		this.postedTime = postedTime;
	}

	/**
	 * @return
	 * @hibernate.property column="priority"
	 */
	public Float getPriority() {
		return priority;
	}

	public void setPriority(Float priority) {
		this.priority = priority;
	}

	/**
	 * @return
	 * @hibernate.property column="stream_favicon_url"
	 */
	public String getStreamFaviconUrl() {
		return streamFaviconUrl;
	}

	public void setStreamFaviconUrl(String streamFaviconUrl) {
		this.streamFaviconUrl = streamFaviconUrl;
	}

	/**
	 * @return
	 * @hibernate.property column="stream_source_url"
	 */
	public String getStreamSourceUrl() {
		return streamSourceUrl;
	}

	public void setStreamSourceUrl(String streamSourceUrl) {
		this.streamSourceUrl = streamSourceUrl;
	}

	/**
	 * @return
	 * @hibernate.property column="stream_title"
	 */
	public String getStreamTitle() {
		return streamTitle;
	}

	public void setStreamTitle(String streamTitle) {
		this.streamTitle = streamTitle;
	}

	/**
	 * @return
	 * @hibernate.property column="stream_url"
	 */
	public String getStreamUrl() {
		return streamUrl;
	}

	public void setStreamUrl(String streamUrl) {
		this.streamUrl = streamUrl;
	}

	/**
	 * @return
	 * @hibernate.property column="title"
	 */
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return
	 * @hibernate.property column="title_id"
	 */
	public String getTitleId() {
		return titleId;
	}

	public void setTitleId(String titleId) {
		this.titleId = titleId;
	}

	/**
	 * @return
	 * @hibernate.property column="updated"
	 */
	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	/**
	 * @return
	 * @hibernate.property column="url"
	 */
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Activity() {
		super();
	}
}
